Carbon


FSSetForkPosition

Header: Files.h Carbon status: Supported

Sets the current position of the specified open fork.

OSErr FSSetForkPosition (
    SInt16 forkRefNum, 
    UInt16 positionMode, 
    SInt64 positionOffset
);
forkRefNum

The reference number of the fork.

positionMode

The base location for the new position. If positionMode is equal to fsAtMark, then the positionOffset parameter is ignored. See “Position Mode Constants” for a description of the constants you can use here.

positionOffset

The offset of the new position from the base.

function result

A result code.

AVAILABILITY

Supported in Carbon. Available in Mac OS 9, and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)